Fix bug in mac and windows detection

There was a little error preventing recognizing windows and mac environments.