Fixed KeyError that occurred when VCS such as 'bzr' were installed.
Improved output on error.