scripts/getver.sh: prevent asking for negative rev-parse