bypass os.getuid on Windows

Fix of  #578 os.getuid on Windows