checks and fixes in release.sh