Try to use safe uid before throwing sudo error
Merge pull request #159 from SBoudrias/sudo

Try to use safe uid before throwing sudo error