Use proc_pidpath() on OS X to determine the pathname of the process's
executable, as OS X lacks a /proc file system.