Ensure that the work_dir exists.