Fix test for git to allow tarball builds.