use File.exist? instead of File.exists?

Running under Ruby 2.1 or higher with -w option. I got deprecated warnings. This patch fixed it.