fix issue 11760, host entries append to eol, even lines with comments