Check SD card before writing.