Use File.exist? instead of File.exists?

Get rid of warnings, since File.exists? method is deprecated now.