re-read the note and follow it explicitly.

you need to create a wrapper procedure called "shell" which points to "sh", then when you do the exec statement you use "exec shell" (which is the wrapper procedure), not "exec sh"