Updated scripts to restart pm2 properly