fix npm postinstall script, fix bower components installation when executing `npm install`