Improve ~/.cabal/config handling