use File.exist? instead of File.exists?
Merge pull request #829 from hsbt/remove-warnings

use File.exist? instead of File.exists?