use File.exists? since Dir.exists? is too new for jenkins's ruby