Fix usage of ROOT_URL in rebuild