make the release script more flexible