Fixing username detection in win os