Fix bug parsing files from tgz (II)