fix distro script