collapse multiple ////s in path