fix git version check for version with more than 3 parts
Merge pull request #359 from campersau/fix_version_check

Fix git version check for version with more than 3 parts