Updated deploy script to treat plugins as modules