bugfix: fix permissions *after* uploading the key file