Fix tls_handshake input processing

Corrects a bug that prevents inputFile argument from working with tls_handshake