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.

Credits go to Brian Candler https://github.com/candlerb

This fixes #47