Improve handling of foreign ~/.ghc and ~/.cabal