Use File.exists? because Dir.exists? doesnt work in Ruby 1.8.7

Change-Id: Ic064baf917068ec575e8ef18ae756ab84369c3fd