pub fn effective_path_str(p: &str) -> String
If p is “.” (implicit default), replace with detected project root. Otherwise, return as-is.
p