Use generic dir for sockets