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