Fixed bug in version check for git