Fixed crashing when deleting a non-existant directory