Allow the setting of the regex flags
Cleanup the clean method.

Now carefully cleans tmp directories and report failures
This will clean the output, source output (which I think is the same)
test output, and the target directory.