Fix deprecated method

Fix warning `File.exists?` is deprecated in favor of `File.exist?`.