configure: simplify pandoc version recognition.

The version recognition was failing for version 1.11, thinking the
minor version was 1 rather than 11.
auto merge of #5540 : dbaupp/rust/configure-pandoc-version, r=brson

The version recognition was failing for pandoc version 1.11, thinking the
minor version was 1 rather than 11, and thus not building the documentation.