Fix the find shell helper for commands without newline

Also fixed when the help of the command contains newlines in the middle.
e.g. findAndModify