restore old release script

environment variables in BASH are not flexible enough