This needs to detect if the rubygems version is greater than 2.  This otherwise fails with ruby 1.9.3 and ruby gems 2.0.3.  Maybe just do a duck check?