Ensure that files are really signed

Currently it is possible that e.g. due to bad passphrase the PGP signature is not created (as the process of signing a particular file is not restarted).