Can you use a built-in tar method here if possible?

Also, please split all arguments in both of these files.