Move config rewrite to the main script