Install pre-commit hook if it is not already installed

Change-Id: I38d54c8b0cdd734e9a8151aec13a08e90a14d18f