Update cli.js

Fix for issue #934 - Process.env.HOME is not cross-platform compatible, Windows equivalent of this is process.env.HOMEPATH.