Support nginx style directory listing
Add -delete flag to dir_install to remove old files in the destination directory
Remove trailing and double-slashes from dir_install paths