another method for git version check