(Haiku) Fix fill_pathname_application_path()