Simplifying release.rb for newer versions and fixing bug in it.