fixes a path name.