Build script now terminates if first latex compile fails.