sd: Added automatic detection of SD card presence (polling).