Fixed bugs in release.sh script