Case insensitive file extension check (accepts JPG and jpg now)