expand ~/opt/pandoc path before passing it to system