Check for root and root perms and offer to install/fix

Also fix sort order for file selector by date and file sizes

Change-Id: Idff9fe4232c19d4ed1082e78fabe6f921aa0a114
diff --git a/gui/gui.cpp b/gui/gui.cpp
index 7fd474a..4788fe0 100644
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -423,6 +423,10 @@
 		  PageManager::Render ();
 		  flip ();
 		}
+		if (DataManager::GetIntValue("tw_gui_done") != 0)
+		{
+			break;
+		}
 	}
 
   gGuiRunning = 0;