Run only when hostname is defined.