Use `__dirname` in export mechanism