Installing Hg and Git hooks