File extension check should be case-insensitive.