typo
fix typo; do some non-windows protection against envinment lacking windows login info (avoids nullException)