Fix attaching with UNIX sockets

Signed-off-by: Ben Firshman <ben@firshman.co.uk>