pub fn resolve_effective_cwd(cwd_override: Option<&str>) -> StringExpand description
Resolve the effective working directory for a job.
If cwd_override is Some, use that path as the base. Otherwise use the
current process working directory. In either case, attempt to canonicalize
the path for consistent comparison; on failure, fall back to the absolute
path representation (avoids symlink / permission issues on some systems).