Handle non-existence of git/hg/rustc gracefully