Repair the dist script