workaround issue with rubygems under ruby 1.8.7

See https://github.com/travis-ci/travis-ci/issues/1793 and
https://github.com/rubygems/rubygems/pull/763