Fixed bug in remembering export directory.