Fix return value from build_work_dir.