refs: use strings directly in find_containing_dir()