corrected the fnmatch to be case insensitive