diff --git a/b9.cabal b/b9.cabal
--- a/b9.cabal
+++ b/b9.cabal
@@ -1,5 +1,5 @@
 name:                b9
-version:             0.3.0
+version:             0.3.1
 
 synopsis:            A tool and library for building virtual machine images.
 
diff --git a/src/lib/B9/B9Config.hs b/src/lib/B9/B9Config.hs
--- a/src/lib/B9/B9Config.hs
+++ b/src/lib/B9/B9Config.hs
@@ -5,6 +5,7 @@
 -}
 module B9.B9Config ( B9Config(..)
                    , defaultB9ConfigFile
+                   , defaultRepositoryCache
                    , defaultB9Config
                    , getB9ConfigFile
                    , writeB9Config
diff --git a/src/lib/B9/B9Monad.hs b/src/lib/B9/B9Monad.hs
--- a/src/lib/B9/B9Monad.hs
+++ b/src/lib/B9/B9Monad.hs
@@ -61,7 +61,7 @@
   where
     run' buildId now buildDir = do
       -- Check repositories
-      repoCache <- initRepoCache (maybe defaultB9ConfigFile id (repositoryCache cfg))
+      repoCache <- initRepoCache (maybe defaultRepositoryCache id (repositoryCache cfg))
       let remoteRepos = getConfiguredRemoteRepos cfgParser
       remoteRepos' <- mapM (initRemoteRepo repoCache) remoteRepos
       let ctx = BuildState
