adjust `tags` script to work with recent versions of git