tar: replace ad-hoc split functions with Re_str.split

Signed-off-by: David Scott <dave.scott@eu.citrix.com>