update-hook: fix incorrect use of git-describe and sed for finding previous tag