build: make AUTHORS not trigger rebuilds

Make AUTHORS update depend on .git/index. Also only update AUTHORS if the new
file differs.