Fix column detection for tab separated values

Column detection for TSV files is broken: a CSV file is always assumed.
This has been flying under the radar because the test case for importing
a TSV file is also broken. Fix these.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>