Rework portage_utils' find_packages to work with old and new gentoolkits.