more error messages if session renaming fails, and remove stupid use of RENAME macro and use ::g_rename() instead