HPCC-9481 CSV record definition auto discovery

Rework aftewr second review.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>