fix(qemu_template): Replace getopts with simple pattern matching.
fix(qemu_template): Replace getopts with simple pattern matching.

The use of getopts was leading to conflicts between this script's short
options and qemu's long options. For example -serial was getting
interpreted as -s -- erial which is not very helpful.

vmware/coreos-scripts,fivethreeo/scripts,mjg59/scripts,marineam/coreos-scripts,zhang0137/scripts,endocode/scripts,nicescale/scripts,fivethreeo/scripts,mjg59/scripts,glevand/coreos--scripts,coreos/scripts,mischief/scripts,andrejro/coreos--scripts,marineam/coreos-scripts,gtank/scripts,andrejro/coreos--scripts,vmware/coreos-scripts,marineam/coreos-scripts,mjg59/scripts,gtank/scripts,trnubo/scripts,BugRoger/scripts,vmware/coreos-scripts,sigma/coreos-scripts,endocode/scripts,endocode/scripts,smilart/scripts,zhang0137/scripts,BugRoger/scripts,sigma/coreos-scripts,fivethreeo/scripts,trnubo/scripts,smilart/scripts,coreos/scripts,nicescale/scripts,nicescale/scripts,BugRoger/scripts,trnubo/scripts,smilart/scripts,mischief/scripts,mischief/scripts,glevand/coreos--scripts,gtank/scripts,andrejro/coreos--scripts,sigma/coreos-scripts,zhang0137/scripts