adb: extract Windows bits out of directory_exists test. am: 89b9767776 am: e1dfdec612
am: 82d50b507b

Change-Id: I99ffefb261128a52c88817100a1cf730454089d3