diff --git a/codex.cabal b/codex.cabal
--- a/codex.cabal
+++ b/codex.cabal
@@ -1,5 +1,5 @@
 name:                codex
-version:             0.1.0.3
+version:             0.1.0.4
 synopsis:            A ctags file generator for cabal project dependencies.
 description:         
   This tool download and cache the source code of packages in your local hackage,
@@ -27,7 +27,6 @@
     Codex
     Codex.Project
     Codex.Internal
-    Distribution.Hackage.Utils
   build-depends:       
       base                >= 4.6.0.1    && < 5
     , bytestring          >= 0.10.0.2   && < 0.11
@@ -37,7 +36,7 @@
     , download-curl       >= 0.1.4      && < 0.2
     , either              >= 4.3.0.1    && < 4.4
     , filepath            >= 1.3.0.1    && < 1.4
-    , hackage-db          >= 1.6        && < 1.8
+    , hackage-db          >= 1.8        && < 1.9
     , MissingH            >= 1.2.1.0    && < 1.3
     , process             >= 1.1.0.2    && < 1.3
     , tar                 >= 0.4.0.1    && < 0.5
@@ -64,4 +63,4 @@
     , monad-loops         >= 0.4.2      && < 0.5
     , transformers
     , yaml                >= 0.8.8.3    && < 0.9
-    , codex               == 0.1.0.3
+    , codex               == 0.1.0.4
diff --git a/codex/Main/Config.hs b/codex/Main/Config.hs
--- a/codex/Main/Config.hs
+++ b/codex/Main/Config.hs
@@ -3,7 +3,6 @@
 module Main.Config where
 
 import Data.Yaml
-import Distribution.Hackage.Utils (getHackagePath)
 import GHC.Generics
 
 import System.Directory
@@ -12,6 +11,7 @@
 import Codex
 
 import qualified Main.Config.Codex0 as C0
+import qualified Distribution.Hackage.DB as DB
 
 data ConfigState = Ready | TaggerNotFound
 
@@ -36,8 +36,8 @@
 loadConfig :: IO Codex
 loadConfig = decodeConfig >>= maybe defaultConfig return where
   defaultConfig = do
-    hp <- getHackagePath
-    let cx = Codex hp (taggerCmd Hasktags) True True
+    hp <- DB.hackagePath
+    let cx = Codex (dropFileName hp) (taggerCmd Hasktags) True True
     encodeConfig cx
     return cx
 
diff --git a/src/Codex/Project.hs b/src/Codex/Project.hs
--- a/src/Codex/Project.hs
+++ b/src/Codex/Project.hs
@@ -8,7 +8,6 @@
 import Data.Traversable (traverse)
 import Distribution.InstalledPackageInfo
 import Distribution.Hackage.DB (Hackage, readHackage)
-import Distribution.Hackage.Utils
 import Distribution.Package
 import Distribution.PackageDescription
 import Distribution.PackageDescription.Parse
diff --git a/src/Distribution/Hackage/Utils.hs b/src/Distribution/Hackage/Utils.hs
deleted file mode 100644
--- a/src/Distribution/Hackage/Utils.hs
+++ /dev/null
@@ -1,11 +0,0 @@
-module Distribution.Hackage.Utils where
-
-import System.Directory
-import System.FilePath
-
--- TODO Remove once path extracted in hackage-db
-getHackagePath :: IO FilePath
-getHackagePath = do
- homedir <- getHomeDirectory
- return (joinPath [homedir, ".cabal", "packages", "hackage.haskell.org"])
-
