update to work with latest Cabal HEAD: switch to withTemp{File,Directory}Ex

See https://github.com/haskell/cabal/commit/553c72b02ccc538b0b05420e117f5f86656e0f37 .