use a little helper to determine architecture

Architecture reported by `uname -a` and used by pacman are not
neccessarily the same, so use a little helper.