Pulling up success flag functionality into Maestro base.

@stephanh Can you please review flag creation , we can move this up here.
It doesn't just create the processed file in each of the directories but also writes all the paths into a separate file.