Check GnuPG is installed, raise error if not.

Added a function that implements the `which` command in python to check that GnuPG is installed. Sourced from a [stack overflow answer](http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python) by Jay (jayloden.com).