mgagit: Attempt to write out a last-modified file for cgit.
This means the Last Modified column in cgit will show the date of the last commit
not the date of the last push (which can be completely unrelated, especially when
doing rebases or forced pushes and fixups etc.)
Note: If we stop using rsync for replication then this can be removed and replaced
with a different hook on the receiving side.