Add npm install --dev under git cloning, and change dir before sending mail