Replace File.exists? with File.exist? to avoid deprecation warnings in Ruby 2.1.x.