Canonicalize our root path before we try using it

Because we make assumptions about it not containing symlinks :)

Fixes #3242