CBQE-0: fix permission denied error during hostname setup

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