Exerb: know the location of the exe

hi,

In ruby I can use $0 to get the full path of the script being executed.
however, after I wrap it using exerb, this info is lost. Could anyone
pls give me a hint on how to get the executable path in exerb program,
or alternatively, when executing an ruby script, get the location of the
ruby interpretor.

Thanks!
Shannon