This should probably do ``_.extend(config, localConf || {});`` after creating the file for consistency.