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

Because /storage/sdcard0 doesn't map to any devices we currently support, and /storage/sdcard does.