[Support][Haiku] Use the app image path in getMainExecutable() (#246810)
On Haiku getMainExecutable() only searched for argv[0]. Callers such
as LibTooling pass a placeholder ("clang_tool"), so the lookup failed
and tools like clang-tidy could not find the Clang resource directory.
Get the path of the app image from get_next_image_info() instead.
https://github.com/haikuports/haikuports/issues/15124