update minimal distribution script