Add dos-mode and netcmd-mode to excluded modes