You should check if Pandoc is available before trying to do so.