Fix a bug when checking the export dir after deletion, adds @todos