Shouldn't you delete `params.cwd` after this line?