Swap the keystore through a temp and .old file on Windows instead of relying on os.Rename alone, which is not reliably atomic there. Signed-off-by: Bryan Frimin <bryan@probo.com>