Fixed syntax and added IOS support for save_config flag