Fixes #1657 Upgrade script loads plugins.

Fixes #1657