Adding check for git version 7 or 8

* git changes message for the version, adding check