use latex command for generic variables : this version works with
-output-directory option of pdflatex/xelatex/latekmk. This assumes that
TEXMFOUTPUT is set to /tmp