work around rmdir failing if the directories are already gone