Derive UNIX socket filename from PID filename.
Let the GUI use UNIX sockets if available.