ksgen: fix error parsing --arg=value option

--arg=value would be passed as single argument so options need to
be split on '=' before looking up in the parsed list of args.

Change-Id: Ic8b36505ae36e81f605ca309d52997a0f4021574