fixed: TypeError in pkg._find_install_targets when version is None