Proper prefs installation under cache environments

Fallback for plugin cache folder installations.