As I was working to get this functionality in place, I was running into issues with the lack of metavariables like __dirname (as referenced here) that would prove useful for use with path.resolve and ...