Add retry to plugin define

In some cases plugin installs / downloads can fail.
Now we retry it several times