Fixes to release.py
Merge pull request #1730 from astrofrog/fix-releaser

Fixes to release.py