set distribution url if not set (#891)