Change order of creating tar to fix warnings about deleted files