corrected build-dist script