Bug 924142 - Safely handle empty sshkey files

Use IO.read to avoid File.gets == nil, and properly stub IO.read when FakeFS is activated