Updated 'extract.pl' to avoid including file paths in the final output file.