Minor fixes to npm -g state