Bugfix: should only detect arch for getsetup()