Bug 1039219 - Migrate all snippets for preferences in Makefile to preferences.js

tbpl failed at this line. We can't find $(GAIA_DIR)$(SEP)distribution folder and throw error in getFile.