Revert "use realpath of root."

This reverts commit 0b417e6a0322f9d1c021aeedf3ebfa9d3d8aa853.