add tests for git version matching

The git version differs according to packagers (e.G. brew vs deb) so the
git version parsing needs to deal with all known variants.