Ruby 2.1 has deprecated File.exists