Fixed pandoc version detection.
Revised pandoc version detection.
Fixed indentation error.
Merge pull request #6241 from cel4/pandoc_fix

Fixed pandoc version detection.