Filesystem tweak for badly-constructed paths, and regex perl2java pattern conversion fix.