fixed postinstall, fixed hapi index.js