1344: Only exclude top-level metadata.rb file while vendoring

This should fix issue #1344.