git hooks: improve the 'last-modified' file generation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
git hooks: move the custom actions from post-update to post-receive

For current git this is a better place

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>