Normalize root directory

The root directory was stored as it was gotten from the user of the API.
Since it was stored without normalizing, other paths created afterwards
were normalized and failed comparisons against the root directory.