autodetet the platform architecture