Improve error handling: - Show exception if the path can't be listed. - Reload node cache if the preferences directory changes.