Fix path resolution through symlinks

gh-31