correct slashes in the path