Move get_temp_path to utils