Change deprecated `File.exists?` to `File.exist?`.

Pointed out in #595.