Better machine name handling.

Returns "unknown" instead of exiting. Could fix a case where wintex failed
to connect to server and returned error code 3.