fix seamods_config file update logic in different mode.