Used cabal project directory to run ghc-mod when cabal project is available to fix problems with template haskell openFile calls