Rakefile: Add File.write to make Ruby 1.8 happy