configure: fix the nghttp2 detection when not found