Minor tweaks to export.pl