Fix hook install command when the hook doesn't exist.