MB-11844: handle 127.0.0.1 as node name for collecting logs

Change-Id: I91d897d6bda8eb3fd7e2ea43a3a97fa0607087a9
Reviewed-on: http://review.couchbase.org/40028
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>