fix git version check for version with more than 3 parts