@krisjace have you tried the current support for binary relocation?
And BTW, properly finding the Right Path™ is way trickier because `argv[0]` seldom contains a full path (not to mention it could be any kind of rubbish, it doesn't *have* to be the actual executable filename). Anyway, current relocation path code should already be handling that fairly OK.