Fixed deleting of mconsole_path and arguments of datagramReceived for machine_dummy
check terminal if off during tests
fixing log output when no terminal in machine