Fix installation of hooks

Change-Id: I45cb978e40033c3ebc5d5f1ee126302fe0a83b02