tools/echo and cleanup fix in export scripts
tools/echo and cleanup fix in export scripts

Signed-off-by: Marek Fiala <marek.fiala@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/5816

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf