switched to using getpass.getuser() for root check