Fixed repo update script