getExportDir() method shouldn't return user.dir when it is null.