Fix normalization of relative paths
Merge pull request #1773 from hason/filesystem

Fix normalization of relative paths