git-cms-init: use $CMSSW_GIT_HASH instead of $CMSSW_VERSION, if available

This should fix git cms-init for special IBs like `CMSSW_7_1_DEBUG_X_2014-05-06-0200`, where `$CMSSW_VERSION` does not match a git tag.