added support for enterprise versions. updated metadata.rb