Fix log dumping on Android