node: fix for duplicate entries in known_hosts file

Thanks to @scrappythekangaroo for both reporting the issue and providing
the fix.

closes gh-208