Extract work_dir