Add 'which' node module.
Put in place some error handling so 'spawn' won't crash Brackets Node Domain.