Parsing a TeX document or rendering it would change the environment of this program to set a search path for child processes. This could cause concurrent uses to get the wrong files. Fix that by explicitly passing an environment to the child process.