Fix keyfile mkdirp on Windows.