Fix beagrep fail when the starting path has symlink in its components.

Must start from the true path, as the mkbeagrepidx will use the true
path.

Fix issue 1 (part 2).