[MacPlatform] Make sure that file glob matching is case-insensitive.

Fixes bug #10932