Use instance_types rather than flavors.

The current code is broken, since "flavors" does not exist anymore.