Fix files used to generate pgp key, removing null pointer exception.

* Fix files to use canonical file for finding parents
* Add better error messages on pgp-cmd failures
* Add local testing project.

Fixes #49