adding check for non-existant directory for dir_install before attempting to "clean if delete flag is present"
adding nginx style directory listing