Style tweaks, validate crypto_home_directory perms

- Made various stylistic changes.
- Removed "-p" flag from mkdir(1) calls.
- The permissions on crypto_home_directory are now validated to make
  sure it is writable only by root.