Support RubyGems 2.0 in plugin install.