maint: fixed bash shift bugs in release.sh and release-bm.sh