wildmatch: fix case-insensitive matching