Pass filename variable to pandoc