restore start-hook.sh and watch-hook.sh