normalise slashes in filesystem paths