Enable hot-loading of preferences. Fix file-handling regression.