Update export script

was failing sporadically