OS detection mac fix