Use argv[0] to locate the server executable.
[wine] / miscemu /
drwxr-xr-x   ..
-rw-r--r-- 9 .cvsignore
-rw-r--r-- 196 Makefile.in
-rw-r--r-- 3564 main.c