Add case insensitive flag to user agent pattern match