Restore wildcard handling when installing gems

RubyGems 1.8.x inadvertently expanded glob patterns when installing
gems.  This allowed `gem install *.gem` to work on JRuby and Windows,
which broke after the glob expansion was removed.

This restores glob expansion allowing RubyGems to work on JRuby again.

Fixes #697