fixed packer_spec.rb to be compatible with ruby 1.8