Detect proper npm version

The local installed npm modules is not the same same as the global one which represents the cli. So the old "version detection" will always return the version of the local installed one.
This should be fixed by detecting the version using `npm -v`.