fix root/path handling.