Install bundler for ruby builds

This should help mitigate the problem mentioned in
travis-ci/travis-ci#1176.