Migrate Gitaly hooks directory away from Ruby code
The Gitaly hooks directory is part of our Ruby tree. We should it from there, e.g. by creating a temporary directory and symlinking required hooks into it. This would also get rid of a useless shell execution and another breaking point.