fixing OS detection