Create pki_dir if it does not exist
Merge pull request #217 from techhat/issue215

Create pki_dir if it does not exist