Allow to pass multiple directories and add a filter for the output.
uses fnmatch instead of strpos for filter to be consistent with other filters