[#57004836] Fix finding of run dir from node modules on macos