Remove dot dot in paths