More portably detect whether pandoc is installed