Ensure the update code path returns only when all the files are updated. And format the update url to make github happy.