fix mongo env vars in config files