Save config after modifying it.