Fix for travis and ruby 1.9.x