Hooks file installation refactor

* Fix sending [] as param