add _portage_best_version() function and rework install_packages() to allow for future X of Y tracking
Changed paths: