Rewrite sshkey security plugin

Update debugging output if privatekey_dir is defined but the directory
does not exist.