Bug 1020152 - Generate pre_installed_collections.json in build time.

okay I run build script with patch and it works on Windows.