Fix for https://github.com/ktoso/maven-git-commit-id-plugin/issues/146 : Now using SHA of commit in native git in case Repro is in detached HEAD-State and not in a CI-Environment, thats the same behavoir as in JGit-Implementation