Fix current working directory bug

The `__dirname` will point to the global node modules' directory.