configure: simplify $arch handling