Get the version of a package from package.json