[libvirt PATCH 18/20] vmware: refactor vmwareExtractVersion