Fix bug parsing files from tgz