feat: better config __dirname support
#8442
+18
−16
Merged
__dirname support
#8442