Use os.tmpdir() instead of '/tmp/'
Fix ssh-keygen call on windows