build.bat: move the info message outside of the loop when signing.

Also fix the script to properly exit when signing fails.