release.sh made more modular

It is now possible to more easily test
single parts of release.sh