made cmd() error single line only apply to check_* nagios plugins