tools: fix tdc device open

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>