> What I though would be an issue, is not getConfig itself, but the fact that functions that getConfig calls into, also use path.dirname.

Even if that is true, my code did nothing to cause that. The previous code also called path.dirname.