better root path resolution, part 2; typos fix