Don't sudo when root

ui.sh locks up when started on a node without network connectivity as
sudo tries to reach the LDAP server. To avoid this, as a quick fix,
ui.sh was modified to not run sudo when already logged in as root.