convert CMD output to array before comparing

Some times patchcords was added bebore bond interface. In thos case full-text search may give
wrong positive answer. (substring 'bond0' found inside 'br-bond0').

Change-Id: Ie54d94ce83906a972b422c5a5bb048d61f26db7f
Closes-bug: #1375347
Merge "convert CMD output to array before comparing" into stable/5.1