Refactor: libcrmcommon: functionize getting executable path for a PID
... to improve readability, reduce code duplication, and isolate procfs code