Preserve the execution order for `exec` command if `--with` option is given.

Even if the content contain duplicate items.

Closes GH #297
Remove the `uniq` subroutine, which is not used in the pm code anymore.