Fix hostname check
