Fix getting correct path when calling through symlink