Add functions to get directories based on job_id