Use 'tail' instead of base etc. for last component of split path
io, hadoop: Various fixes for split_filename special cases
Redo read_textdb to take a base instead of dir/prefix