Renaming rootDir to rootPath