fix distribution script