Adding fixes for rbenv and ruby 2.x with readline 6.3