Make `filter_gem` work when the gem is vendored under the working dir.