fix deprecation warning on File.exists?

fix deprecation warning on File.exists?
Merge pull request #81 from masterkain/patch-2

fix deprecation warning on File.exists?