More fix variable names
Output tar error to log file