fix creating work_dir