bugfix: make sure project root is expanded before checking whether given buffer is in there.