enhance build scripts for releasing from non-master branch

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
Merge branch 'master' into type__rbenv