better way to check git version