scripts: clean build-release script a bit
Merge pull request #1650 from jonboulle/build_release

scripts: clean build-release script a bit