Save config to temp file then move to final location