Bug 1020152 - Generate pre_installed_collections.json in build time.

please check if it works on Windows.