Make hook installation work when project is a submodule

Change-Id: Ibe01576173538084b3022b2697f4c90c12164a88