Greedy bases in variable Lebesgue spaces