Add helpers to read the executable path for a given PID
Linux systems use the procfs system via.
/proc/${pid}/exe
On FreeBSD the executable path can be queried using the sysctl via
{ CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, ${pid} }
can be used.