Fix temp directory for ssh-keygen on windows systems

'/tmp/' . md5(microtime(true)); behaved oddly on a windows system. I've added code to make this a little more robust.