Modified run scripts to generate services.json file at runtime.