Update bat files and perl scripts

Deleted unused bat files; Update bat files to work with new build
directory; Add file processing to perl template