Fix temporary directory path for spec opt.