You can try smaller
wd = strings.SplitAfter(wd, "<yourProjectDirName>")[0]
wd = strings.SplitAfter(wd, "<yourProjectDirName>")[0]