Fix unix socket handling.