Fix bug in mac and windows detection
Merge pull request #12 from cimnine/patch-1

Fix bug in mac and windows detection