Use F_ROOTDIR() in place of dir.root.