Parallelize calculation of goPackagesInRepo.

Factor out getRootPath().