Updated release.sh script with more correct git commands

@obi1kenobi - please merge in my git-related changes to the release script.