allow theme and highlight to work with self.contained = FALSE; provide pandoc_path helper function