More review feedback:
- Refactored common directory finding code into a function
- Adding some logging
- Ensure node-install is called only once