making the check for git a bit better