Updated the auto-installation of the plugins so that the script creates plugins.json if it is not there.