Just another fixes.

1) Fixed batch mode.
2) Improved ecdsa checks for zeroed signatures
3) Fixed program crash when rap\rifkey.bin file is not placed.