Fix install flow bugs.

ran grunt test