Simplify NpmHelper.should_sudo? shell command & make method public
Add specs for NpmHelper.should_sudo?