fix local repo deploy script