configure: fix non-standard regex used with expr
The colon operator of expr always anchors the pattern at the start of the string. An explicit in the pattern has unspecified behaviour, so remove it.
Signed-off-by: Mans Rullgard <mans@mansr.com>