Use ModuleProvider.set/getLocalVar to find __dirname in parent context