Fixing duplicate commands in the config

If an allowed command was present twice in the configuration file
and if that command was invoked, it would executed twice (or more
if it was present more).

It is now fixed and the return code is forwarded from the command.