Updates config file