Fixes to release.py script

@sarina Does this fix your issues?