whoami: fix for Windows

Please test this.  I don't know whether or not it works because I do not have Windows easily accessible to me right now.