generic_agent: skip duplicate inputs, they need only be loaded once

Fixes issues with `masterfiles.git`