(Apple) Refactor core_info_set_core_path