Defensive programming in release-version.sh

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>