Canonicalize our root path before we try using it, because we make assumptions about it not containing symlinks

Fixes #3242
Merge pull request #3263 from tianon/abspath-root

Canonicalize our root path before we try using it