Check that clean apk is signed

Before we assumed that the clean apk was properly signed if it existed.
Now we check that the signature is correct and resign it automatically.