Bug 940054: Make flash.sh check its arguments more carefully.