fixed repo pulling script