fix getting version numbers instead of package names