Add generalised windows_guest? and windows_host? functions and use them throughout