update_repository.sh code rewritten in order to help forking
code no longer rely on fixed repository URLs, by reusing each clones URL