split tar component of file writer into separate script called as subprocess