Fix #228: check if os has geteuid

geteuid is only available on UNIX, thus installation fails on Windows.