normalize file, directory names and other clean up