Update to use fnmatch instead of re.match for filename matching.