What is the scope? Is this an open source project? How many people are working with it?
To me it looks like this is a personal project that only you are working on. I don't see any problem using this approach. I mean, I use a batch file as my build "system" for my personal projects. But for anything else it would be worth discussing the trade-offs versus using one of the available build systems.
I didn't understand how this works: scanCmd = 'scanincludes-%s' %(oPath). What is this scanincludes thing?