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