Workaround for failing build on Ruby 1.8.7

See bundler/bundler#2784