Refactor mainGather as the composite of a file gathering event gatherFiles and an xargs event synthesizer.
flush stdin with a return in xargs.