Remove duplication in path