Fix ROOT_DIR already defined error