make the todo call in cd() a hook added conditionally.

This way no error is thrown, when the todo program is missing.