Fix root checks (device can lose root as well as gain it, so check that
one as well).