Fix a bug where 'root.dir' was ignored

This patch corrects a regression that was introduced at b91772d6.
It might seem strange that changing a relative path to an absolute
path caused a regression, but it surfaced when 'root.dir' was used.

After the change, R CMD check passes.