Store BA_MODE during config file writes