I usually go with python when my .sh/.bat script files gets too complex. So I guess we wento down the same road.

Like ruby (I guess), python is very pleasant to work with for small scripts and it's portable between linux and windows, which is really cool (at least in my use cases)

In python, glob, Path and subprocess are mostly all I need...