Bug fix: checking string length of variable foamPrefs before sourcing the prefs file