release-version.sh: add a version sanity check

Thanks to Johannes Schindelin for the idea.