Added check for root, so we can setup system context in getting and setting umask