Fix file path creation and canonicalization on posix.
Merge commit '16d7d96'