Fix git version check for version with more than 3 parts

Implemented suggestion from https://github.com/FredrikNoren/ungit/issues/346#issuecomment-39276679