Fix for ruby 1.8.7 which raises in rmdir if directories do not exist.