improved logging of the npm and node output
fixed the problem on windows, when installing phatomjs