android_csd: dirname doesn't exist on all devices, so avoid it

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>