Hacked together a simple install-hooks script