My suggestion would be to only declare `getProcessPath` on operating systems that support it, and then factor this out into a common unittest block (maybe guarded with `is(typeof(getProcessPath))`.