add ignorecase to related functions utilizing fnmatch and patterns