(iOS) Refactor out path_make_and_check_directory