fixed warnings from ruby 2.1.0

warning: File.exists? is a deprecated name, use File.exist? instead
Merge pull request #1245 from walf443/fix-warnings-File-exists

fixed warnings from ruby 2.1.0