use fnmatch instead of re to match exluded files.