Only exclude top-level metadata.rb file while vendoring

This should fix issue #1344.
This gives us something specific to match against in our tests instead of assuming `mktmpdir` with create a directory with 'tmp' in the path.