When we do a config to yaml, target is dir to write file, not file