Fixed bug where cleaning a non-existent directory would not work