[COOK-3351] Fix printing hostname