Well it probably takes slightly longer to write the program than to manually rename all the files, but you just have to write the program once, and then you can use it on any cave story mod or cave story itself.
(well, unless you're a doofus like me, and wrote the program in unregistered Liberty BASIC, where you have to wait several minutes for the interface to unlock, since you were too lazy to look up how to rename files in Python)