Changed signature of find_tasks_external_id_by_status to also return the taskdir