usertools: fix input handling in telemetry script