fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips"