Update plugins install script to be more flexible