added common utils
reverted bin/bash
added more configs
added conditions when to compile node, and added npm install