fixed ecos distribute script