build.bat: local variables and for-loop + copy