isRootUser function added to base.sh