version.sh: add preprocessing guards