Fix dist script