catch cases where no suitable tls mode can be picked
remove __dir__ from rspec