Autodetect arch on Linux and Windows