Fixed OS detection