extract_package_version function

Extract the Installed Version of a Package