Bugfix: use correct value for project root.
bugfix: make sure project root is expanded before checking whether given buffer is in there.