Bug 1017139: Fix upgrade extension detection