Fix: Error When Deleting Directories Recursively

https://github.com/mecha-cms/cms/issues/7