Fix bug in test-release.sh where the script would not exit if any