fix write_settings at install time