Check for critical environment variables.

Ensure that LANG and HOME are both set before running Pandoc, as their
absence can cause fatal errors as discussed in #31.
Merge branch 'master' into feature/shiny-dependencies