Changed fetching of path to return correct path for symlinks

Fixes #233