Fix node_modules path

In some cases we need to install this hooks in nested repositories. This request fix bug with this case
Could you tell me what this line does? Why `cd`?