Fix build_dir extended test case.
More efficient find_root_package_dir.