fixed the logic of getting batch child processes
Merge pull request #368 from kaltura/IX-9.3.1-batch-script-fixes

fixed the logic of getting batch child processes