fix fnmatch etc.