Bash script for using pandoc remotely over ssh