Correctly check if MGR_DEBUG is set.
Let help find shell functions too.
Add help info.