diff --git a/codex.cabal b/codex.cabal
--- a/codex.cabal
+++ b/codex.cabal
@@ -1,5 +1,5 @@
 name:                codex
-version:             0.3.0.6
+version:             0.3.0.8
 synopsis:            A ctags file generator for cabal project dependencies.
 description:
   This tool download and cache the source code of packages in your local hackage,
@@ -50,7 +50,7 @@
     , transformers        >= 0.3.0.0    && < 0.5
     , yaml                >= 0.8.8.3    && < 0.9
     , wreq                >= 0.3.0.1    && < 0.5
-    , zlib                >= 0.5.4.1    && < 0.6
+    , zlib                >= 0.5.4.1    && < 0.7
 
 executable codex
   default-language:  Haskell2010
@@ -76,7 +76,7 @@
     , network             >= 2.6        && < 2.7
     , wreq
     , yaml                
-    , codex               == 0.3.0.6
+    , codex               == 0.3.0.8
 
 source-repository head
   type:     git
diff --git a/src/Codex/Project.hs b/src/Codex/Project.hs
--- a/src/Codex/Project.hs
+++ b/src/Codex/Project.hs
@@ -7,6 +7,7 @@
 #endif
 
 import Control.Exception (try, SomeException)
+import Control.Monad
 import Data.Function
 import Data.Maybe
 import Distribution.InstalledPackageInfo
@@ -47,7 +48,8 @@
 
 findPackageDescription :: FilePath -> IO (Maybe GenericPackageDescription)
 findPackageDescription root = do
-  files <- getDirectoryContents root
+  contents  <- getDirectoryContents root
+  files     <- filterM (doesFileExist . (</>) root) contents
   traverse (readPackageDescription silent) $ fmap (\x -> root </> x) $ List.find (List.isSuffixOf ".cabal") files
 
 resolveCurrentProjectDependencies :: IO ProjectDependencies
