Save config file properly