scripts/getver.sh: fix older git versions from printing stuff to stdout