Fix the nightly build script so it doesn't upload failed builds

@robn Ping!

I'm sorry about this, but I have no good way of checking that it works properly, and my knowledge of perl could be reasonably estimated to be zero so I've probably done it wrong, but... we really need the build script to stop uploading archives that don't contain an executable.