Add slave_mode to Debian and change to use flag