Bug 1028261 - Fix to exit with a non-zero code on errors

I'm not sure I follow. Why are we then replacing /storage/sdcard0 with /storage/sdcard?