Refactored buildall.bat