This is neat, but I'd rather just pick my platform from a list of binaries. Those who don't know what they're running probably aren't spoofing their user agent either, so you can just* serve them the correct option with a big button first.
* It doesn't seem that you can reliably get the CPU architecture from the user agent yet.