PackageManager now gets correctly expanded directory for plugins.
Repository list now shows if a package is already installed.
Plugin upgrading now works.