Correctly check metadata of both compressed and uncompressed files.