utils.js
function writeConfig(adapterName, path, config){
	var adapter = getAdapterInstance(adapterName);
	return adapter.configWriter(normalizeAdapterConfigPath(adapter, path), config);
}
function writeConfig(adapterName, path, config){
	var adapter = getAdapterInstance(adapterName);
	return adapter.configWriter(normalizeAdapterConfigPath(adapter, path), config);
}
write a config for given adapter in given path
@param {string} adapterName the name of the adapter we want to use
@param {string} path file or directory where to write the config. In case of a directory will automatically append the adapter.configFileName
@param {object} config the config to write