Fix "npm ls"-using tests on Windows.

exec doesn't work well when there are spaces in the path, like in the default installs of Node.js on Windows into Program Files.