Fix auto-upgrade; skip auto-upgrade when running platform command