Fixes to release.py

@eteq @embray - I had to make these changes to use the release script for another project