Fix path for preferences file