fix `options.rootDir` problem