fix release.sh buglets. Add a little better input checking.