Use fnmatch() in filter instead of own simple to allow [xyz] matches.