get package version from Cabal