patch applied (cabal-install): Use the new withTempDirectory function