extract the version from package records