Use File.exists? as Ruby 1.8 does not have Dir.exists?