local: Pick Dalvik over ART if available

Both might be available on pre-Lollipop Android devices, and the default
in those cases is Dalvik. This does mean we won't support people who've
forced ART on older devices, but such is life.
local: Fix up build with device listing

This makes Linux and Android builds work. Needs to be tested and tweaked
for OS X.