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

Change-Id: I395e8e9a0522b14489922dca34dd733816b56952