CCBC-150: Do a deep search to locate commands

Change-Id: Ic66ef44c129bbed64037b1fe09e0a152d54f035a
Reviewed-on: http://review.couchbase.org/23633
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>