[Git][pacman/pacman][master] libmakepkg: improve validity checking of arch array