If mode parameter was not given choose the correct one.

https://github.com/simone-f/qat_script/pull/5
should work now properly also with other tags.