Senses if Mac OS and then sets debug