Revert changes, add logging

Reverted script to a more stable version and added additional logging.  Alias for finding gpg is a bit more resilient to input errors.