Revert "Fix saving sessions on windows by using g_rename instead of ::rename"

This reverts commit 2e2c22ad3c0af34b311024b1f8cb4571c1e3c48f.