Updated update_copyright to work with git/hg/bzr.