Fix proxy errors on Windows

Check for setuid/getuid as means of platform detection before checking
if we need to setuid to SUDO_USER.

Fixes #57
Closes #58