Fix shell script hook