diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh
index 8d40ff4b1b35f18494dbd08c6c5fde0716f899b6..8dc7c964bf7ba495d327c5ed78de4f52d4c6993e 100755
--- a/ShellB3/shallbethree.sh
+++ b/ShellB3/shallbethree.sh
@@ -58,7 +58,7 @@ export BASE=$PWD
 
 ID="$Id$"
 if [ -d ../.git ] ; then
-  REVNUM=GIT$( git rev-parse --verify HEAD | cut -c-8 )
+  REVNUM=GIT$( git rev-parse --verify HEAD --short )
   REVDATE=$( ${ANYPYTHON} -c "from datetime import datetime; print(datetime.fromtimestamp( float( $( git show -s --format=\"%ct\") ) ).strftime(\"%Y%m%d\"))" )
 elif [ -d .svn ] ; then
   REVNUM=$(echo $ID |cut -f 3 -d ' ')
@@ -999,7 +999,7 @@ export PY38FSVER=3.8
 export PY39VER=3.9.5
 export PY39FSVER=3.9
 
-export LLVMSIMPLEVER=$(echo ${LLVMVER} | cut -c-3)
+export LLVMSIMPLEVER=$( python -c "import sys; print('.'.join(sys.argv[1].split('.')[:2]))" ${LLVMVER} )
 
 _reloadpythonversion(){
   if [ -f build/.pythonversion ] ; then