Add a guard to ensure that package command runs with the correct version
diff --git a/Rakefile b/Rakefile
index 29a43f3..6bc03be 100644
--- a/Rakefile
+++ b/Rakefile
@@ -32,6 +32,7 @@
 def spec(platform = RUBY_PLATFORM[/java/] || 'ruby')
   @specs ||= ['ruby', 'java', 'x86-mswin32'].inject({}) { |hash, spec_platform|
     $platform = spec_platform
+    raise 'Gem::Specification.load ignores global context (thus $platform) in later versions' unless RUBY_VERSION == '1.9.3'
     hash.update(spec_platform=>Gem::Specification.load('buildr.gemspec'))
   }
   @specs[platform]