system: Fix major upgrade detection

Change-Id: I2acc242c2e1633f069837b8b18b2d0615b0260a3
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>