use default-directory to calculate project root, so we can start searches from magit buffers