art: fix creating dalvik-cache subdirectory

The current code only ever calls mkdir if dalvik_cache_root starts
with /tmp, which is not true on the device.  Split the logic for
creating dalvik-cache from the logic for creating dalvik-cache
subdirectories, as they have different conditions.

Fixes:
05-05 21:34:04.870  1295  1295 F art     : art/runtime/utils.cc:1187] Failed to find dalvik-cache directory /data/dalvik-cache/arm64
when /data/dalvik-cache/arm64 doesn't exist.

Change-Id: Ifdf5fcc2d3a8d80f6182cf2e5b5d7b1fac3c3810
1 file changed