Update package updating code to only update those packages that are installed. Removed the avalanche-dev version, replaced with avalanche-2 if required. Updated rat package code to correctly check if installed.