Install pre-commit hook if it is not already install

Change-Id: I6013f26b80897940383380ddcd4fa93778b3ba15