Ruby 2.1 Dir.exists? has been deprecated