Fix hooks for pre/post scripts

* 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 when the options are not given