Fixed Travis build using Ruby 1.8