Use realpath to determine root.