Reset MCU when SD card inserted.
Minor changes to card detect switch handling.