Removal of extra method in PathUtil, make newDependencies abstract.