Use File.exist? instead of deprecated File.exists?
Merge pull request #2214 from stomar/file-exists