attempt to implement "match_all_files" parameter

This is probably a naive implementation, but it should work.