Add embedded pygit when running tests and building