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

fixed the logic of getting batch child processes