Code cleanups to make error reporting and logging more consistent.
Canonicalizing paths with symlinks in them.