Bugfixes and implementation of copyFile in TarFileSystemProvider