Fix mksdcard script

Syncing *before* unmounting partition is better than after, i think.
At least, it works for me.