Fix a bug in the usage of $EXP_SIZE_FD in export

Fix a bug in export script where the check of whether to use the
$EXP_SIZE_FD file descriptor was wrong.

This fixes #47