Add integration/regression test for Bug#4098, and improve the log message
when insecure permissions on hostkey files are found.