Revert "Remove root check when restarting"

This reverts commit fc0e9e973a4db2e056e893a344e92f329ce591e9.