Handle readline problem in cabal/homebrew