Changing dir path to a possibly correct one