[COOK-3351] Fix printing hostname

Signed-off-by: Seth Vargo <sethvargo@gmail.com>