Fixed OS detection order: Mac before Linux