properly use SO_NOSIGPIPE socket option on systems where MSG_NOSIGNAL
is not available.
remove bogus directory