Bug 1020152 - Generate pre_installed_collections.json in build time.

please run jshint for those scripts.