adjust batch files to make processing more portable