patch applied (cabal-branches/cabal-1.2): Use getTemporaryDirectory from Distribution.Compat.Direcotry