Fix bash loop. Ranges don't work with ENV vars