Be more clever when to install pm2 scripts