`-generate` flag should also create config.xml (closes #847).

Can't see this used anywhere?