fix Capitalize, Usage, reg.FindIndex, Dir and File mode