[git] Make git version checks more readable