Fixed a bug in checking whether the files were extracted