Make buildfile work in Ruby 1.8.
Merge pull request #783 from candlepin/awood/ruby-compat

Make buildfile work in Ruby 1.8.