Adapt to https: git URLs
Check error and error.code before assuming stderr means errors.
Fixes #69