Use ::File to get the top-level File class instead of RSpec's internal one
Fix specs on Ruby 1.9.2