pub fn try_find_project_root(cwd: Option<&Path>) -> Result<PathBuf>
Returns the root path to set for the project root.
Same as find_project_root, but returns an error instead of panicking.
find_project_root