configure: fix check for YAZ version