CBQE-0: fix for hostname setup for linux

Change-Id: I2d556f889699412c8aaa36a88ab963dae46dc8cc
Reviewed-on: http://review.couchbase.org/27345
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: Iryna Mironava <irynamironava@yandex.ru>