Show running hook scripts

I fixed some problems introduced by the PR #12.

* Added messages for hook scripts
* Fixed hook scripts were executed even when the options were not given
* Removed an `echo` command for debugging in the prepare script