Don't commit userprefs.
Fix mime type detection on non-Unix systems.