bug fix: set rootDir to the absolute path