Fix attaching with UNIX sockets