use http api to check for latest ionic version

Prefer the http api over spawning `npm show ionic version` due to
possible npm version issues and the command line hassles.