Refactored the git-release script