Fix broken preferences path