Platform detection is now simpler