Extend format option to support redirection of trailing slash for directories
#136
+8
−3