Convert update_copyright.py to a more VCS-agnostic version.