use fnmatch to filter files