Make release script return 1 with no version

This is needed for better usablity and integration with other
programs
Make release script write error to stderr
Merge pull request #277 from alFReD-NSH/release-script

Release script