Fixes Travis CI checks with Ruby 1.8.7 and lower

Travis CI is currently broken with 1.8.7 and lower. This appears to fix it on my local instance.