Fix for hostkey directory
Merge pull request #6527 from patrickheeney/hosts-bug

Fix for hostkey directory