Search for _d suffix in debug mode

Change-Id: Idea0d03d1e38a94dae07148f0e1ef0fc75630fae
Reviewed-on: http://review.couchbase.org/33267
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>