fix brittle test testCryptDirectory