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