Fix npm install on 0.6 and 0.8