Moved the pandoc-related apt-get commands to separate script