Bug 976112

In setup_rewritten, we need to process all file types.
Process dot files, too.
Generalize the file filtering somewhat
Test recursive case, too.
Clean up the assertion
Merge pull request #2928 from BanzaiMan/dev/hasari/bz971622

Merged by openshift-bot