fixed OS detection