Allow failing on `getpass.getuser()`. Refs #3189.

Log as debug on windows, and as an error otherwise.

Thanks @nigelsim and @djs52 for the debuging information.