Fix for gpg-agent call
Make prompt work on all platforms