Terminal application:  Fixed a few cache_dir variables to use self.ws.settings instead of self.prefs.