scripts/getver.sh: fix revision number on BSD/MacOS