Use sys_get_temp_dir() as per review.