CACHING GOT ME AGAIN NOOOOO!
Switch to using the File::FNM_DOTMATCH and File::FNM_CASEFOLD flags, which makes fnmatch_flags not necessary