Save cfg file when exiting config mode if file doesn't exist