Fixed release script to use correct commit revision hash when building and version number in commit message when preparing next