Modernize fnmatch detection macro.