I've run into an issue with variable expansion in the different distributions of LuaLaTeX (chiefly MikTeX and TeXLive). In TeXLive (both 2014 and 2016), I can use the following to reference my home directory:
\newcommand{\home}{$HOME}
and subsequently have commands like the following to allow me to reference both my Windows (work) and Linux (home) filesystems.
\graphicspath{{\home/LaTeX/logos/}{\home/LaTeX/signature}}
The problem that I'm running into is that I can't figure out how to make the MikTeX version of LuaLaTeX expand the path variable.
I've tried just about every combination of
\newcommand{\home}{${HOME}}
\newcommand{\home}{${$HOME}}
\newcommand{\home}{\%HOME\%}
\newcommand{\home}{${\%HOME\%}}
and
miktex-lualatex --enable-write18
miktex-lualatex -enable-write18
miktex-lualatex --shell-escape
miktex-lualatex -shell-escape
but nothing I do allows me to find the font I'm trying to reference. I get varying versions of
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: "File not found: ${$HOME}/LaTeX/fonts/
depending on what I try to make the combo of options above.
If someone could shed some light on what I'm missing or perhaps present a better solution that what I have been doing, it would be greatly appreciated. I compile with both pdfLaTeX and LuaLaTeX depending on whether or not I need the OTF fonts.

