Syntax error fix in pre-hook script.