added metadata.rb and fixed windows pkg