Dir.exists? does not exist in Ruby 1.8.7