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.
Merge pull request #8 from mriehl/master

add tests for git version matching