Or you could just use `readlink` on /proc/self/exe.