Don't run auto upgrade on non-release builds (fixes #901).