fix #6227, ‘old_peak_path()’ does not exist on win.