Fix the find shell helper for commands without newline

Also fixed when the help of the command contains newlines