Fix for 1.8.x not having Dir.exist?