Fix case-insensitive matching on linux & mac.