Fix the query commands when listing remote gems

In @2751c21 #simple_exceute (renamed to #show_gems in a later commit)
was extracted from #execute but the method was not changed to check the
name variable instead of the options.

This was missed on review, and tests were lacking to cover this case.