cleaned up some of windows/not windows logic.

Some clean up around `IsWindows` , `IsMono`