Try to use safe uid before throwing sudo error