Autodetect build platform