I don't think `npm list` takes the packagename argument (at least not the NPM in node 0.8). Can you just do `npm list --global --parseable` and check if `grunt-cli` is present ?

Or, how about just trying to execute `grunt --version` ?