Fix path resolution for symlink pointing to cwd

gh-56