Fix hooks for pre/post 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
* Renamed the methods for hook scripts
* Removed an `echo` command for debugging in the prepare script
* Delete existing hook scripts if the options not given