Fix typo
Improve platform detection