Refactoring version tasks so they handle the version in a VERSION file or metadata.rb file