a bug fix of missing cabal dir.