ROOT is only valid in pkg_* phases, you're probably looking for BROOT or ESYSROOT.
was fixed in ca7b7f97a997ca003915690316712dcfe98f353f