Added app_sect argument to get_executable_path().