Better option parsing, handle properly mixed -I and -M options

Needed for running testsuite in converted `yast2-storage`.

The tests are executed with `-M ../bindings/ycp -I ../src -M ../src` options which resulted in `No such server module ../src` error.

Originally all `-I` options have to precede `-M` options, now they can be mixed.