Added ruby 1.9 gem installation logic.