Updating Restart script to auto save the config file with current settings before a restart is done