Create output directory path and output there the config.yaml file.

def cfgdump(path, config):
    """Create output directory path and output there the config.yaml file."""
    dump = yaml_dump(config)
    if not os.path.exists(path):
        os.makedirs(path)
    with open(os.path.join(path, 'config.yaml'), 'w') as outf:
        outf.write(dump)
    print(dump)