Changed OS check - made it cleaner.