Fix ROOT_DIR missing.