Improved gem matching for removal from Gemfile

Closes #154