[PULL 16/32] crypto: move check for TLS creds 'dir' property