Fixed permissions.

Changed homedir to userdir in preparation for shift from python-gnupg
to gnupg if the latter should prove to be an improvement in the
future.  Presently it only breaks things.