Search line with awk itself and avoid grep

In ssh driver, some command sets are needlessly long.
"awk" command can search line itself. This fixes it.

Change-Id: Ie900aebe2f9ff7745c0456c5650204df84d0e799
Closes-Bug: #1365268