Make package_examples.rb ruby 1.8-compatible