Patched the Ruby script to delete directories