Update configure.py

Reworked checks to make sure script is running as root