use rubygems 1.8 for ruby 1.9.1, fix #2262