Create temporary directory if it doesn't exist when scheduling jobs.