Problem mentioned in description was because of environment issue, where hook script was not executed because I had not set /usr/local/bin in the my PATH variable.