Move arch check before OS check.