Fix packages plugin on agents