Remove the superfluous ..s from the path component