adapted to using pkgdir for building

simplified git repository name handling