Return the result of commands
Fixes uploading of public keys