configure: do not use bash's expr match