cleaned up some of windows/not windows logic.

Some clean up around `IsWindows` , `IsMono`
I didn't want to clean this up before checking the ui.