added extra check for ext3 when formatting, not rewriting /etc/fstab in place, using a temp file