implement FNM_CASEFOLD extension to fnmatch function