UNIX shell parser: fix several issues with multi-argument options and nested arguments