Install the given gem file instead of alternates

When multiple versions of the same gem exist in the same directory only
the gem given by file name should be installed.  This restores this
functionality.

Fixes #875