I tried __filename for some time, but the code acts like it is undefined (in 'make test'). I tried require.resolve(), ditto. global.process seems to be defined, but that does not help us.  So I gave up.