Bring the repo test back in sync with `.gitignore`.

This keeps the tests from failing, e. g. when developers use `rbenv` to run the 1.8-based tests.
Merge pull request #6493 from claui/fix-repo-layout-test

Bring the repo layout test back in sync with `.gitignore`