Broke out common code for reading cabal files