I move creating the extension xml after the .tgz file has been created to prevent it from being zipped into the tarball.