fix preferences bug

Simplified version, use userRoot instead of systemRoot