SD card partitioning fixes

1) fix fat formatting with newer versions of mkfs.vfat
2) fix race condition with formatting of ext partition