Fixed OS detection bug