improved gem completion script

* converted to bash
* stripped down to just what I need.
* works with new `gem open` subcmd (`gem install gem-open`)