actually sync plugins to remote host.

Also move pluginsync to the beginning of the process