Hi,

Without discussing the benefits or drawbacks: Finding the real executable of the current program is highly dependent of the OS in use.

So, without further ado, here are two links that give you pointers you how to "roll your own" solution:

http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe/1024937#1024937
http://stackoverflow.com/questions/933850/how-to-find-the-location-of-the-executable-in-c

Regards,
Florian

P.S.: By the way, uninstalled Ruby is unsupported by ruby core, so any library expects this as well.

--
Florian Gilcher

smtp:   flo / andersground.net
jabber: Skade / jabber.ccc.de
gpg:    533148E2