simplify accomodate the last cmd (usually z) block

remove redundant/twin code-block of recognized svg-cmd:
to avoid loosing last 'z' command that maybe never accomodated.
It also make sure we only has single solution for identic reason.