Move root check from start of program

Move the root check from the start of the program to the place it's
needed.

Signed-off-by: Rupert Muchembled <rupert@rmuch.net>