Determine project correctly when accessing project files through a
symlink somewhere in between.