Add test for pruning of root READMEs

This tests the functionality of 82c2e06, which prevents a readme file
generated in the root dir from being gathered into subsequent builds.