Fix warnings

Several uninitialized variable warnings (including one for a test bug).

File.exists? now warns in ruby-head.