Add a few more safety catches to the mkrelease.sh script.