related to #1, making sure directories are cleaned up before mimosa cleans up the directories in the main project