Enhanced platform detection