fixes configuration files
on reset and stop commands perform a shutdown/reboot command first through ssh. if that fails use the corresponding cm command.