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 #2935 from BanzaiMan/stage_bz976112

Merged by openshift-bot