Make npm test and npm install behave sane