Case insensitive file extension detection